package com.huangwei.model;

public class User {
    private Integer userId;
    private String phone;
    private String password;
    private String nickName;
    private Integer bookCount;
    private Double avgCost;
    private String imgUrl;
    private DriverLicense driverLicense;

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", nickName='" + nickName + '\'' +
                ", bookCount=" + bookCount +
                ", avgCost=" + avgCost +
                ", imgUrl='" + imgUrl + '\'' +
                ", driverLicense=" + driverLicense +
                '}';
    }

    public User(Integer userId, String phone,
                String password, String nickName,
                Integer bookCount, Double avgCost,
                String imgUrl, DriverLicense driverLicense) {
        this.userId = userId;
        this.phone = phone;
        this.password = password;
        this.nickName = nickName;
        this.bookCount = bookCount;
        this.avgCost = avgCost;
        this.imgUrl = imgUrl;
        this.driverLicense = driverLicense;
    }

    public User() {
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getBookCount() {
        return bookCount;
    }

    public void setBookCount(Integer bookCount) {
        this.bookCount = bookCount;
    }

    public Double getAvgCost() {
        return avgCost;
    }

    public void setAvgCost(Double avgCost) {
        this.avgCost = avgCost;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public DriverLicense getDriverLicense() {
        return driverLicense;
    }

    public void setDriverLicense(DriverLicense driverLicense) {
        this.driverLicense = driverLicense;
    }
}
